export const verify = {
	isEmptyStr(str){
		if(!str || str==''){
			return true
		}else{
			str = str.trim()
			if (str.length == 0){
				return true
			}else{
				return false
			}
		}
	},
	// 手机号码验证
	phone(phone) {
		if (/^[1][2,3,4,5,6,7,8,9][0-9]{9}$/.test(phone)) {
			return true
		}
		return false
	},
	//密码验证
	password(password) {
		if (/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{8,}$/.test(password)){
			return true
		}
		return false
	}
}
